package game.banana.server.roomgame;

import game.banana.server.GameConstant;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.menacheri.jetserver.app.PlayerSession;

public class BananaRoomGame {
	public static int MAX = GameConstant.MAX_ROOM;
	Long gameRoomId;
	String gameRoomName;
	
	/**
	 * danh sach nay chua nhung player chua vao phong nao
	 * tuc la moi vao room nhung chua vao battle nao
	 */
	List<PlayerSession> listPlayerSession;
	Map<Object, PlayerSession> mapPlayerSession;
	
	List<BananaBattle> listBattle;
	Map<Long, BananaBattle> mapBattle;
	public BananaRoomGame(String gameRoomName) {
		gameRoomId = System.currentTimeMillis();
		this.gameRoomName = gameRoomName;
		listPlayerSession = new ArrayList<>();
		mapPlayerSession = new HashMap<>();
		listBattle = new ArrayList<>();
		mapBattle = new HashMap<>();
	}
	public Long getGameRoomId() {
		return gameRoomId;
	}
	public void setGameRoomId(Long gameRoomId) {
		this.gameRoomId = gameRoomId;
	}
	public String getGameRoomName() {
		return gameRoomName;
	}
	public void setGameRoomName(String gameRoomName) {
		this.gameRoomName = gameRoomName;
	}
	public List<PlayerSession> getListPlayerSession() {
		return listPlayerSession;
	}
	public void setListPlayerSession(List<PlayerSession> listPlayerSession) {
		this.listPlayerSession = listPlayerSession;
	}
	public Map<Object, PlayerSession> getMapPlayerSession() {
		return mapPlayerSession;
	}
	public void setMapPlayerSession(Map<Object, PlayerSession> mapPlayerSession) {
		this.mapPlayerSession = mapPlayerSession;
	}
}
